<?php

 

/**
 * ============================================================================
 * MXCMall开源商城
 * 官网地址: http://yushangcn.com/index.php/Api/Test/getGoodsDetail 
 * 联系QQ:510858687
 * ============================================================================
 */
namespace Api\Action;

use Think\Controller\RestController;

 
class TestAction extends RestController {
	public function __construct() {
        parent::__construct();
    }	
    /**
     * 获取商品详细信息
     */
    public function getGoodsDetail() {
    	$goodsId = '3705';
        
 
        $goods['pics'] = M('goods_gallerys')->where('goodsId=' . $goodsId)->field('id,goodsImg,goodsThumbs')->select();
        
        if(empty($goods['pics'])) {
            $goods['pics'] = array();
        }

        echo "<pre>";
        var_dump($goods);
    }

}